package cate.common.table.activity.turntable.sheet;

import cate.common.table.ESheet;
import cate.common.table.activity.turntable.row.TurnTableBaseRow;

public class TurnTableBaseSheet extends ESheet<TurnTableBaseRow> {

    @Override
    public String getSheetName() {
        return "基础配置";
    }

    public TurnTableBaseRow getRowByFuncIdAndConfigId(int funcId, int configId) {
        for (TurnTableBaseRow row : list) {
            if (row.funcId == funcId && row.configId == configId) {
                return row;
            }
        }
        return null;
    }

    public TurnTableBaseRow getRowByFuncId(int funcId) {
        for (TurnTableBaseRow row : list) {
            if (row.funcId == funcId) {
                return row;
            }
        }
        return null;
    }
}
